<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <title>OpenLayers Basic Single WMS Example</title>
    <script src="http://www.openlayers.org/api/OpenLayers.js"></script>
    <script src="../trunk/Layer/WeGoogle.js"></script>
    <script src="../trunk/Layer/WeCelestial.js"></script>
    <script type="text/javascript">
var map, layer;
function init(){
    map = new OpenLayers.Map( 'map', {
        projection: new OpenLayers.Projection("EPSG:900913"),
        displayProjection: new OpenLayers.Projection("EPSG:4326"),
        units: "m",
        maxResolution: 156543.0339,
        maxExtent: new OpenLayers.Bounds(-20037509, -20037508.34, 20037508.34, 20037508.34)
    });
            layer = new OpenLayers.Layer.OSM();
            map.addLayer(layer);
            map.addControl(new OpenLayers.Control.LayerSwitcher());
            map.addControl(new OpenLayers.Control.MousePosition());
            map.addControl(new OpenLayers.Control.ScaleLine());
            map.setCenter(new OpenLayers.LonLat(122.3599, 37.4105).transform(
                map.displayProjection,
                map.projection
            ), 0);
            // google maps
            map.addLayer(new OpenLayers.Layer.WeGoogle.Street());
            map.addLayer(new OpenLayers.Layer.WeGoogle.Satellite());
            map.addLayer(new OpenLayers.Layer.WeGoogle.Toponym());
            map.addLayer(new OpenLayers.Layer.WeGoogle.Terrian());
            map.addLayer(new OpenLayers.Layer.WeSky());
}
    </script>
  </head>
  <body onload="init()">
    <div id="map" style="height:300px; width: 1000px;"></div>
  </body>
</html>
